package com.example.pojo;

public class User {
    private  Integer id;
    private  String username;
    public User(){
        System.out.println("无参构造方法。。。。。。。。。");
    }



    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("User{");
        sb.append("id=").append(id);
        sb.append(", username='").append(username).append('\'');
        sb.append('}');
        return sb.toString();
    }

    public void setId(Integer id) {
        this.id = id;
    }



    public void setName(String name) {
        this.username = name;
    }

    public  void add(){
        System.out.println("add..method..");
    }
}
